<?php
include 'base.php';
if($conn -> connect_error) {
    die($conn -> connect_error);
}
$sql = "SELECT * FROM `oulelist`";
$res = $conn->query($sql);
$arr = Array();
while($row = mysqli_fetch_assoc($res)){
    array_push($arr,$row);
}
echo json_encode($arr);
?>